testsuite: Be more exhaustive
authorBenjamin Otte <otte@redhat.com>
Thu, 9 Jul 2020 20:26:57 +0000 (22:26 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 9 Jul 2020 20:29:36 +0000 (22:29 +0200)
Create larger source models in tests, so that we hit the incremental
batch size more often and have a higher chance to expose bugs there.

testsuite/gtk/filterlistmodel-exhaustive.c

index 117430b68f509ce9f73ed494cb98b1020306a7e3..00be63ba085243b66ce0c20efdbfc9d054ebbda9 100644 (file)
@@ -1,7 +1,5 @@
-/* GtkRBTree tests.
- *
- * Copyright (C) 2011, Red Hat, Inc.
- * Authors: Benjamin Otte <otte@gnome.org>
+/*
+ * Copyright © 2020 Benjamin Otte
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -324,7 +322,7 @@ test_two_filters (gconstpointer model_id)
 
           for (k = 0; k < 10; k++)
             {
-              source = create_source_model (0, 20);
+              source = create_source_model (0, 1000);
               gtk_filter_list_model_set_model (compare, source);
               gtk_filter_list_model_set_model (model1, source);
               g_object_unref (source);
@@ -418,7 +416,7 @@ test_model_changes (gconstpointer model_id)
       if (add)
         {
           /* We want at least one element, otherwise the filters will see no changes */
-          GListModel *source = create_source_model (1, 20);
+          GListModel *source = create_source_model (1, 100);
           GtkFilterListModel *model1 = create_filter_list_model (model_id, source, multi);
           g_list_store_splice (store1,
                                position,